import request from '../utils/request.js'

// 验证手机号码是否被注册过
export function DocheckPhone (params) {
    return request.post('/user/docheckphone' , params)
}


// 发送短信验证码
export function DosendmsgCode (params) {
    return request.post('/user/dosendmsgcode' ,params)
}

// 验证短信验证码
export function DocheckCode (params) {
    return request.post('/user/docheckcode' , params)
}


// 注册
export function Register (params) {
    return request.post('/user/dofinishregister' , params)
}

//  登录
export function Login (params) {
    return request.post('/user/login' , params)
}